<app-header title="行业资讯"></app-header>

<ion-content>
  <div class="hyx-news">
    <img class="img" [src]="zixunimg" alt="" srcset="">
    <ul>
      <li *ngFor="let item of list" >
        <a [href]="item.link">
          <div>
            <p>
              {{item.title}}
            </p>
            <span>2020年1月7日  15:00</span>
          </div>
          <img [src]="item.imagePath" alt="">
        </a>
      </li>
    </ul>
  </div>

  <ion-infinite-scroll threshold="10px" (ionInfinite)="loadData($event)" style="margin-top:2rem;">
    <ion-infinite-scroll-content
      loadingSpinner="bubbles"
      loadingText="Loading...">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>

  <p class="overdata" *ngIf="flag">已加载完全部数据</p>
</ion-content>

